import Vue from 'vue';
import Vuex from 'vuex';
import getters from '@/lib/store/getters';
import app from '@/lib/store/modules/app';
import settings from '@/lib/store/modules/settings';
import user from '@/lib/store/modules/user';
import tagsView from '@/lib/store/modules/tagsView';
import abp from '@/lib/store/modules/abp';
import dict from '@/lib/store/modules/dict';

// 当前系统状态模块
import permission from '@/lib/store/modules/permission';

Vue.use(Vuex);

const store = new Vuex.Store({
  modules: {
    app,
    settings,
    user,
    tagsView,
    permission,
    abp,
    dict
  },
  getters
});

export default store;
